package com.adinnet.api.address.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 省市区
 * </p>
 *
 * @author zYshuai
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_address")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 编码
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 所属省份编码
     */
    private String provinceCode;

    /**
     * 所属市编码
     */
    private String cityCode;

    /**
     * 类型 1省；2市；3区
     */
    private Integer type;

    /**
     * 状态，0正常，1删除
     */
    private Boolean deleted;

    /**
     * 修改时间
     */
    private Date updatedDate;

    /**
     * 创建时间
     */
    private Date createdDate;

    @TableField(exist = false)
    private List<Address> addresses;



}
